// 用户相关API
import request from '@/utils/request'

export function login() {}

export function getInfo() {}

export function logout() {}

// 登录
const loginAPI = (data) => request.post('/sys/login', data)

// 获取用户基本资料
const getUserInfoAPI = () => request.post('/sys/profile')

// 根据userId 获取员工基本信息
const getUserDetailsByIdAPI = (id) => request.get('/sys/user/' + id)

export { loginAPI, getUserInfoAPI, getUserDetailsByIdAPI }
